from django.urls import path
from .views import CategoryCreateView, CategoryListView, CategoryDetailView, BlogCategoryListView

urlpatterns = [
    path('admin/create/', CategoryCreateView.as_view(), name='category_create'),
    path('admin/getall/', CategoryListView.as_view(), name='category_list'),
    path('admin/get/', CategoryDetailView.as_view(), name='category_detail_get'),
    path('admin/update/', CategoryDetailView.as_view(), name='category_detail_update'),
    path('admin/delete/<int:pk>/', CategoryDetailView.as_view(), name='category_detail_delete'),

    path('blog/getall/', BlogCategoryListView.as_view(), name='category_list_blog')
]
